package com.station.administrators.service.impl;

import com.station.administrators.dao.JournalismClassDao;
import com.open.capacity.common.model.JournalismClassModel;
import com.station.administrators.service.JournalismClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author YangGang
 * @Title:
 * @Description: TODO
 * @date 2021/6/29/10:51
 */
@Service
public class JournalismClassServiceImpl implements JournalismClassService {
    @Autowired
    private JournalismClassDao journalismClassDao;

    @Override
    public void add(JournalismClassModel journalismClass) {
        journalismClassDao.add(journalismClass);
    }

    @Override
    public void update(JournalismClassModel journalismClass) {
        journalismClassDao.update(journalismClass);
    }

    @Override
    public void delete(Long id) {
        journalismClassDao.delete(id);
    }

    @Override
    public JournalismClassModel findById(Long id) {
        return  journalismClassDao.findById(id);
    }

    @Override
    public List<JournalismClassModel> findAll(JournalismClassModel journalismClass) {
        return journalismClassDao.findAll(journalismClass);
    }

    @Override
    public Integer getCount(JournalismClassModel journalismClass) {
        return journalismClassDao.getCount(journalismClass);
    }
}
